package com.echo.fm.content.activity;

import java.util.List;

import com.echo.fm.content.activity.model.Action;
import com.echo.fm.content.activity.model.ActionItem;
import com.echo.util.ErrorException;

public interface IActionService {

	List<ActionItem> searchActionItemList(int actionId) throws ErrorException;

	int insertAction(Action action, List<ActionItem> itemList) throws ErrorException;

	void updateAction(Action action, List<ActionItem> itemList) throws ErrorException;

	void updateAction(Action action) throws ErrorException;

	Action searchActionById(int id) throws ErrorException;

	void deleteAction(Action action) throws ErrorException;

	List<Action> searchActionList(String title, Integer actionType, Integer status, Long searchStartTime,
			Long searchFinalTime, Integer loopStatus, Integer firstResult, Integer maxResults) throws ErrorException;

	Long searchActionListCount(String title, Integer actionType, Integer status, Long searchStartTime,
			Long searchFinalTime, Integer loopStatus) throws ErrorException;

	void test();

	List<Action> searchActionList() throws ErrorException;

}
